import axios from "../utils/index";
let {post} = axios

export const uploadImgurl = "https://www.biokeylab.com/api/upload";
// 登录
export const loginApi = data => post("/login", data);
// 退出登录
export const loginOutApi = data => post("/loginOut", data);
// 公司简介
export const companyApi = data => post("/company", data);
// 更新公司简介
export const updateCompanyAPI = data => post("/update_company", data);
// 产品分类
export const categoryApi = data => post("/category", data);
// 更新产品分类
export const updateCategoryApi = data=>post("/update_category", data);
// 删除产品分类
export const deleteCategoryApi = data => post("/delete_category", data);
// 产品详情
export const productListApi = data => post("/products", data);
// 增加产品
export const productAddApi = data => post("product_add", data);
// 特征
export const featureApi = data => post("/feature", data);
// 增加特征
export const addFeaturesApi = data => post("/feature_add", data);
// 删除图片
export const imgDelApi = data => post("/delimg", data);
// 增加内容
export const contentApi = data => post("/content_add", data);
// 删除产品
export const deleteProductApi = data => post("/product_delete", data);